package homework.api01;

public class StringDemo {
    public static void main(String[] args) {
        String s1 = "abc";
        String s2 = "abc";
        String s3 = "abc";
        System.out.println(s1==s2);
        System.out.println(s2==s3);
        String s4 = "abc"+"123";
        String s5 = new String("abc");
        System.out.println(s1==s4);
        System.out.println(s1==s5);
        System.out.println(s1.equals(s5));
        String s6 = "ab"+"c";
        System.out.println(s6==s1);
    }
}
